<script setup>

</script>

<template>
  <div class="tab">
    <router-link to="/home" exact active-class="link-active">首页</router-link> |
    <router-link to="/user"  active-class="link-active">用户</router-link>
  </div>
  <router-view></router-view>
</template>

<style lang="scss" scoped>
.tab {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.tab {
  padding: 30px;
}

.tab a {
  font-weight: bold;
  color: #2c3e50;
}

.tab .link-active {
  color: #42b983;
}
</style>
